package dyyx;

import java.io.InputStream;
import java.util.logging.LogManager;
import java.util.logging.Logger;

public class JdkLogUtil {

	private static final Logger log = Logger.getLogger(JdkLogUtil.class.getSimpleName());

	// Djava.util.logging.config.file

	static {

		try {
			InputStream is = null;
			is = JdkLogUtil.class.getClassLoader().getResourceAsStream("jdklog.properties");
			LogManager.getLogManager().readConfiguration(is);
			is.close();
		} catch (Throwable e) {
			throw new RuntimeException("JdkLogUtil init error", e);
		}

	}

	public static void info(String msg) {
		log.info("JdkLogUtil.info," + msg);
	}

}
